<?php
namespace app\common\validate;

use think\Validate;

class PatchValidate extends Validate
{
    // 验证规则
    protected $rule = [
        'patch_title|碎片标题'   => 'require',
        'patch_sn|碎片标识'   => 'require',
        'patch_type|碎片类型'    => 'require|number',
        'patch_content|碎片内容' => 'require',
    ];
}